package com.alex.utils.common;


public class CrowlerUtils {
	public static String getTextBetween(String str, String from, String to) {
		return getTextBetween(str, 0, from, to);
	}

	public static String getTextBetween(String str, int start, String from, String to) {
		int p1 = str.indexOf(from, start);
		if (p1 < 0) return null;
		
		int p2 = str.indexOf(to, p1 + from.length());
		if (p2 < 0) return null;
		
		return str.substring(p1 + from.length(), p2);
	}
}
